package cn.lyvust.shili03plus;

/**
 * Description:
 * 防盗门 继承抽象类
 * date: 2021-4-19 20:10
 *
 * @author Guo_guo
 * @since JDK 1.8
 */
public class TheftproofDoor extends Door  {
    private Lock lock;
    public TheftproofDoor() {
        lock = new Lock();
    }
    @Override
    public void open() {
        System.out.println("用力推，门打开了。");
    }

    @Override
    public void close() {
        System.out.println("轻轻拉门，门关上了。");
    }

    public void lockUp() {
        lock.lockUp();
    }
    public void openLock() {
        lock.openLock();
    }
}
